package com.manage.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("tb_coupon")
@ApiModel(value = "优惠券", description = "优惠券")
public class TbCoupon {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private long id;
    private long shopId;
    @ApiModelProperty(value = "优惠券类型：0->全场赠券；1->会员赠券；2->消费赠券")
    private long type;
    @ApiModelProperty(value = "优惠券名称")
    private String name;
    @ApiModelProperty(value = "使用平台：0->全部；1->移动；2->PC")
    private long platform;
    @ApiModelProperty(value = "数量")
    private long count;
    @ApiModelProperty(value = "金额")
    private double amount;
    @ApiModelProperty(value = "每人限领张数")
    private long perLimit;
    @ApiModelProperty(value = "使用门槛：0表示无门槛")
    private double minPoint;
    @ApiModelProperty(value = "开始时间")
    private String startTime;
    @ApiModelProperty(value = "结束时间")
    private String endTime;
    @ApiModelProperty(value = "使用类型：0->全场通用；1->指定分类；2->指定车辆")
    private long useType;
    @ApiModelProperty(value = "备注")
    private String note;
    @ApiModelProperty(value = "发行数量")
    private long publishCount;
    @ApiModelProperty(value = "已使用数量")
    private long useCount;
    @ApiModelProperty(value = "领取数量")
    private long receiveCount;
    @ApiModelProperty(value = "可以领取的日期")
    private String enableTime;
    @ApiModelProperty(value = "优惠码")
    private String code;
    @ApiModelProperty(value = "可领取的会员类型:0->无限时 1->七天")
    private long memberLevel;
    //qqq

}
